Updated simulator example for linux.