Added iPad code