Modified: changed the library to use it as a gem