Cleaned up all the unnecessary print statements and simplified the compareFlows function.