Use local var instead of recalculating sourcePath.