Clean up early functions.