'tags' may be NULL here.