Adding checks to see if authorize iOS needs to be run