First Commit for the unlock/check/lock code