Added sanity check for name attr