Changed way the activity results are handled.