Reformatted code to use 2 spaces instead of tabs