Template register function works as well