Add some abstraction on rendering.