Removed unneeded register function