Rename 'f' variable to 'filename'.