Updateing before gen
Somewhat working test case