Added logic to update suggestion/result, fixed exception handling.