Added init defaults method.