Added mimeType argument to overloaded modification methods and addRelations.