Adjusted to work on iPhone but still needs some work