Added basic render loop.