Fixed speed issue with build_problem. Added lookup table methods in model class.