Finally have a working library...