Added states for inputs