Function for center on
Don't go under or over