Updated controller to create out dir.