Added render function