Added functionality for state names being called