Added log order scripts and more debug output