Modified for Arduino MEGA ADK