The grant will expand the New York State Police units dedicated to finding online threats and will also be available for local departments to combat hate crimes