Refactor to have less argument using defining structures, and also outputting information about the render.