Add function infrastructure.