Data parser from Gedas' code - not quite functioning yet.