Set up data structures & functions necessary for implementing passed-in functions