Use InAttribute on callbacks
Use proper type for flags