Added Apple template code