Added code to show output of var holding a function