Adding arduino control code.