Had the ordering of redirections the wrong way around. Whoops