Adding buffer insertion over file input