Locks API implemented