Type in MODULES.
Added state_code to onBuddyStatusChanged