Moved actions into object for O(1) dereference