Added real-time state manipulation