Changed position variable types to long long.