Made init reentrant