Adding checks for init().