Fixed up an accidental override. StateChange() really needs an overhaul; way too much is accessible to the user right now.