added delay to deal with AUTOMATIC_MODE_SWITCHING