Added the fpp code to replication