I think both are actually ok. In this case we want it here so we have access to the callback variable.