Added fence to scf loop.