Added init method.