Made state typedef