Fixed up resource abstraction.