Added simulator detection implementation