Added autogeneration of actions. Fixes #5