Clean up master.