debugPrint and print both appearing a lot, perhaps worth cleaning them up and/or making it clear which should be used?