Properly bind worker.state class