Added get_line function.