Removed lock code