Restored LB code, still waiting for libraries