Finalized OPTAA functions, starting test functions