Moved a code from Scripts to Formats