\#include's moved to relevant functions