lb_binary.py updated for general SC model