now taking extra param send_to_SN and only posting to SN if avg is less than 20