Added macros for quick buffer clearing