Removed redir function