Added function for rendering text