Added tweak to locking mechanism to enable it to be used by different users.