Restored old version of idealProduct