Adds a callback to the builder creation.