Adding SG, debugging: