Update to allow HandlerFunc funcs as middleware