Tie functions to events

Placeholder til we chain functions