Added emulator unlock functionality