Registering func is written