Code rewrite.