Added reset and finished io