Added CanceledState class