Initial version of the library. Haven't been tested at all.