Misc. code for LBD