Change 'f' variable to be 'fp', for file pointer