Added init with dict