def METHOD_NAME(self):
    #Put your idle loop handler here
    GLSimulationPlugin.METHOD_NAME(self)
    t = self.sim.getTime()
    if self.sim.getStatus() != 0:
        self.statusLog.append((t,self.sim.getStatus()))
    while len(self.statusLog) > 0 and self.statusLog[0][0] < t-1:
        self.statusLog.pop(0)
    return True