First working version of map interface