Re-work on template design.

Signed-off-by: crynobone <crynobone@gmail.com>