Removed static methods from the library to allow for multiple instances.