Added methods to easily register and (automatically) deregister a single
SAM.