Added conditional definition of aux variables for SYNC_PROTOCOL