Got conditional simulator working.