Smart cells