Updated source to modern obj-c syntax.