Changing name of exported function from 'ensure' to 'register'