Added function to compare size