Added functions for convert file to sectors and others changes