Adding render method.