Added debug messages, fix thread timeout, execute postseq if preseq executed