Added error trap for missing file