Added sleep hack to "prevent" race condition