Added ability to determine difference between function and object