Added example of how to handle duplicate state actions