Now consumes correct resource amount.