Added result handling