Changed a hardcoded 3.14159 for PI