Refactorized: FastPGA and related classes