Added writeSimulationVariables to milka