Lib class code.