Add completeLine method.