Start of itemfactory stuff.