Code rewriting with nice namespace.