Its ability to make money has been constrained by the fact that Amazon is both its largest customer and competitor