Should probably call the version that also passes in the maximum length (with an extra byte?)