To avoid circular references to "USE", I had to break structure.f90 into smaller files, Here the proper "USE" statements wer changed.
Adapted to internal storage