Various bug fixes. Post-processing support added.