Implemented callfunction as vtemplate