@William, with such a large sketch, you may be better to split the functions in to their own header files.