Modifies files for occurences_hash. Uses core class.