A smaller version of adding a callback