Preparing simulation