Init.  From google code.