Added state to save results