Implement routeTo()
Aded extra logging for changing state