Adapts to PresentationCompiler API changes

It seems the contents was passed to the PC before, but now it's not. Why is that? Should we remove the `contents` parameter altogether?