re-added varying simulation speeds using usleep