Added opening of files from extension