Finish math code adaptation in seed.rb.