Slight refactor so that test cases can test render delay
Fix for render delay