Accelerated GCD added + refactored