In addition to the actions, it would be very nice to define functions. They could be integrated in a section like the app / page actions are.