Adding the new logic to diff a stack