Locked now works properly