Making the inventory service multithreaded