Add refreshLine method.