Added createMap method.