Rewrite in C.