Switched to templating

Split to config file & utils