Added usleep() to care about timing