Implementation in RMark and MARK