Some Improvements, introduction of lose states