Fixed a setInterval issue, as well as created the register set/store mechanism