Use ao_delay to sleep for 2 seconds instead of trying ao_sleep