Added Helper methods preparing for PM agent.
Fixed minimum bug (thanks to Wilco)
RunningMode may not have a transition to itself (only added in comments, not in test yet).