Update: Steer away from defining functions at runtime where possible.