Updates: remove some useless codes.