added usleep command in main loop