Cleanup and fix blank results issue by adding small sleep