Add register fn