Avoid deprecation notice. Using '@' instead to access variables in template