Reformatted code a little according to the IDEA standard.