Added code for testing automatic redraws for model changes