Initializing simulation