Added IO exception handling
Added path