Added clearItems method.