Updated demo to accept input and diff on the fly