Make preparations for login/passcode and heartbeating.