Add method to move cursor to a given line.