Template function compilation added