Added post processing, gap defining script