Trying to make templates ST4-compatible. refs #413