TODO: Pickle closures.