Converted to modern obj-c style.