Use intermediate directory