Fix multiple methods and add getComponents method