Add remapping-related functions. #21