Do not use the display name for both name and value.
Added additional log output, set result to appropriate value in case an
error occurs.