Cleaned up \r\n checking.