Fixed bug in consumption.

Bug introduced in the last refactoring, consumption was basically
completely broken.