Reformatted with astyle.