Changed logic as varpbit 312 doesn't always return to 0 resulting in the box not being opened.