Main Search Bj Compilation