Adapting for better Arduino integration.