Fix: Moving markProcessed