Final code w/o Flywheel or Hopper