Added library code.