Added the format class based on the one from Haste extension