Added precision shifts to all of the functions