Add base line functions for ANCOR query