Maybe match in the function clause too?