Fixed markUnmarkNSWF method: the submissions take a while to refresh, so the execution has to be paused with Thread.sleep