Added archiving functionality for old orders