Corrected code to conform to Jordan's changes. Changed operation struct to use the single struct.