Output debug messagings and apply some post-processing