maltes
committed
on 28 May 07
Added support for after user state change callback