Double compare implemented