Deleted extraneous where.
Got rid of IntSum, since it wasn't helping much and didn't really belong here.