Make a function with configurable parameters