Simple chained invocation of functions with callbacks