Init re-code.

Ugh.. All this ugly code...