Working on state detection (running/stopped, etc.)