Using pattern matching; doesn't work.