Detect states

prints out when we have an active state