Implemented up and down state per occurence