Implemented clean to rearrange/modify necessary data.