Added assistance code for getting state IDs