Working on map api, compileable version.