Implemented check for necessary files