Size param was not used; added debug msgs in nas