Improved logging, added stopping and execution delay