We probably want to move this to the 'render' method.