Added support for staged files.