Create repeatable functions, and then execute those functions with varying parameters in both Lua and the Block Controller.