Added basic extract file functions