Added checks for PWG and csv file's existance.