Use double quotes and hash rockets to satisfy rubocop rules
Extract Lock/Unlock task receiving
Add some comments, and satisfy some rubocop warnings