Attempting centering logic