Updated for lasted Arduino version.