Fix pause / unpause, and add a preinit method