Added render loop