Added rudimentary modal support.