Flags search

Works, but a bit slow to update.