Shorter code for Schema template file.
Improved the code a little.