Is self.out_dir unused after this? If so we should remove its declaration in the init function.