Add new function select_new_state
Scrap commit
Fix issues with versioning