Update to include two separate metadata callbacks as opposed to one.