My fork from https://code.google.com/p/ga-bitbot/ (in the upstream branch) and additions.