Added a delay when checking for arm state