Adding iPad code