Convert node to klein, Replace redirect function