Templates added.

Added the new templating system.