New hook for Patcher and better assembly detection