Removed redundant variable "idf" from code.