Replaced storing functions to render to multimethods to make things more transparent.