Also, the functions that are only used by this code should be removed as well.