FileInput with changes

Please feel free to test it.