Adapt source file