Added spherical and sloped registration function