Use sleep to avoid invoking multiple garbage collection