Prevent double definition of callbacks