Standardize loops
Use mustache templates instead of strings