These above 4 lines were duplicated a little further down. The error messages were coming out twice on the GUI. So these lines are deleted.