Fixing the reference to the function