Simple middleware patcher. (Not completed)