Trying to implement ${arch} based on #3