 Have set_actions() etc check if anyone is listening.
 use scripts?
