Pull out call to simulation as separate function