Include functions once. Closes #4991