#291. Also added ability to pass in dynamic message parameters.