Replacing globals.
Format code.