Made the normal functions compatible with android