Added check for file if given from argument