Removed unnecessary variable 'matched'