Small framework for creating an executing callback functions