Callbacks are now triggered when needed

For now, only primitive types are supported