Rename the functions working with files to prevent name clashes with the Prelude.
Add function to construct a well-formed 'RegisterIndex'.