Modified algorithm for complex-time distribution