Added new lock functions