Reset the structure, remove some useless functions.