added switches so that it simulates a little faster.