Added render loop-