Added render loop.