Unused functions: Fixed invalid pattern match