Optimized PFT logic, added female logic. Added CFT logic.