Change integrate.rb method