Added video generation, fixed sign error in reset function.