Started re-writing the library processing class to be more efficient, as well as to fetch metadata when processing.