Use $eval to maintain state