Move pair and helper functions.