ported in Rob's structure. COmpiles in AS6 but not yet ivia Makefile