Replan
Mostly fix random note generation