Add library generation