Implement map mode.