Add support for action messages. (semi-hacky)