GBL sensor enhancement (bug fixes + optimizations)