This is calling the function immediately, not adding it as a callback