Improve code for list products.