Originally there was a a lever on the side of the machine instead of a button on the front panel that operated the machine

What is the correctly punctuated version of this sentence?
Originally there was a a lever on the side of the machine instead of a button on the front panel that operated the machine.