Refactored ActionManager to be more OO.