Added ios functions