Change type of 'createRegisterIndex' functions to make them total.