Dynamic rendering

This still has some issues.