Added check for source file existence.