Partially implemented DMS format, rough draft but still :)