More flexible map decoding.