Added modal framework. #190