Refactored template file.