Callback added to renderDynamic (fixes #134)