Easier to use as a library