Added check that init isnt called twice