Add attribute for query mode.