Removed unused code.
Track number of actions.