Added possibility for callback function to cancel updating source file.