Added rt object state switching logic. States can be switched
permanently or temporarily with a duration.