Refactored door unlocking a bit