Add some code for overriding block rendering, not finished yet.