added sleeps to satisfy arduino