Adds missing time argument in simulate function