Add freeform query mode