Added code for FPTS/G