Fixed grammer, ported to ARC and ported to modern obj-c syntax.