Map code finished and debugged.