Added some logic to ReadExercise.