Check to see if things are unlocked first
Merge pull request #438 from dreamteam69/master

Check to see if things are unlocked first