Skip unused and add debug to middleware