Add Template debug and quiet flag to suppress it