Redirecting to Pattern matching