Removed unused function declaration
Passing the correct parameters to lockItem
Adding the logic necessary to acquire the logic to an item