Added assert and compare