Fix to checkitems, also renamed it.