Move compare to new func