I've moved these into the render method. Does that seem OK?