Add Match clause and patterns