Added logging for simulation