Adds render() function to print variables