Added switch inventory script