Reorder constructor and destructor