Add to toString and traverse function