Cleaned up state changed notifications; closes #16.