A fork of the patchlib by at0ms