Added callback to createMap