Added comment for setFormat function