Added conversion of items list to dictionary