Changed acceptEnd to work on Positions derived from files.