AE: Change usleep(µs) to Sleep(ms) for crossplatform compatibility