Removed some unneccesarily complex math.