Adds debug option and iOS navigator checking