Parse map and history files