Working on reset function