Added support for user supplied simulation count.