Moved format.h file and updated format related interfaces to use execution policies