Added further console logging and reset stackCounter (becuase someone forgot to do it)