Now returns -1 if there is no mode.