Move up the locate calculation to save processing time.