Comparison functions
Wrote line parser