Added rtf functions.