Pearl installed an alarm system for Heidi and they check if it works, the alarm starts to make a lot of noise, the second Pearl opens the door. Such an alarm always gives you 10 or so seconds, to turn off the alarm with your code, before it decides you're a burglar and goes off.