Adding Format and SetFormat methods