Add Library code