Backword compatible handler
Complete refactor. Builder now takes in a Function that is later applied on the pipeline
Changed test function name