Wrap boilerplate blackboard code into easier to manage functions.