Added render code