Moved an include to where it was most needed.