Added arduino middle layer