Converted the LB class to allow any arbitrary bits for direction