Removed unused variable $f.