Working on incorporating the operator assignment portion into this function