combine_bits hopefully all cleaned up.