Added reset stuff. Tom please fix clone bug