Added implementation for CBC