Use function hoisting so fn name is accessible in other function