Added get_item utility function; Removed old unnecessary code