Added the missing class reference for WriteModes.