Removed ununused lock
Removed unecessary new line