Adds function registration