Adding BitScan writing