Started working on fixing the iOS port.