Split file up into stages.