Commenting Functions for Line Detection