Added Clarify functions

Modified process_line function to be more efficient