New version - file in memory: bits_copy should be debugged.