Changed spherical coordinates to better coordinates