Changed isFunction calls for result calls