Bug for z!=0 is fixed!
Thank you!