Change state actions 251

Fixes #251 
The name of the function implies it does the changes but in fact it only determines the required changes.