Moved imports and functions into separate (main) header file.