More ARGB code, still not well tested