Removed field for max distance because unsupported

Currentlyh max distance is not supported, so I have
set it to be disabled in the UI. Also un-stubbed some
exception handling.