Copy from phy004
len() used