This is the Berrizbeitia improved version of AKS