Updated constant and reimplemented keysync.