Added simulate function for direct execution of complete simulations.