Callback-based module definition