Rewrite initialize