Re-factor to be capable of dumping products by ids