Modification in snsbase.py