In an agonizing manner; in a way that causes agony.
With great expenditure of effort, in a manner requiring much labor.