Reformatted indented and some functions.