Fixed scattering.
Started work on output.