Code

+ Move reset handling before object creation, otherwise no