Added WRITE_ macros