Now ARC ready. Removed deprecated methods. Explicit casts for clang strict flags.