Cleaning.
Added template for registration method.