Converted class to library.