Got mode() working (sort of)