Integrating rareitems3 code