modify to sleep a while in order to run at the same time.