Simplified compile, Added interval etc attributes for templates..