Added suport for stacked files