Fix missing require

Code from external file was used without inclusion.