Add routine for checking standby