Adding existing code to the lib.