Rearrange functions.