Added support for actions to result in a printed statement instead of just a menu