Refactored now that class has the elements item.