Use atan2 instead of acos