Allow running functions on change

Run a function onchange

Please review and comment.