Function reset is ready... I know it's ugly, but it works right?