Code to make things flat.