Code reformatted to conventions.