Moved template inline