Added public methods, and getter for selected element.