Made templates dynamic, added some logging, and new views.