Finish Phase III: Adding template rendering