Rename functions and hook.