Create b & g threshold variables