Merged template files.
Added base logic.