Change task registration function signature.