Added render functionality