Add 2 more methods to set SCT to RO or RW. Clean up code