Making type and reset optional