Removed extra lines from output file