Added 2 new callback functions to the transform template and moved all of them into a funcs table.
Fixed memory leak in register_filters function.