Allow inline callback registration