Add function to generate SYNC request