Adding 30 px tolerance to line selection function.