Removing, renaming, and implementing main functions