Properly implement batchmodesimulator