Added storing of gpio status even when updating.