Added modal to Giordon Stark's code (kiran)