Changed how security group Ids was being set