Used JSON.stringify to make "cheap" equality test.