Moving common elements from MReporting to this repository