Added logging to stacks scripts