Update post-processing code after library change

The uploadlibrary was changed with the post-processing part.
Update Augustins code to match the new system.