Added poorly implemented rendering setup.

TODO: Rework rendering handling to be more flexible and reasonable.