Added main scripts - work on template population