Remove print statements and fixed an issues with missing NAS