Added sample redirection