Finished register function

The register function dynamically sets the cabinet offset now