Refactors find_cart