Reformatted code to use spaces instead of tabs.