Fixed function to match seq.