Fixed the bugs in the program. Now it successfully logs the fp operations