Honestly due to lack of unit tests, I didn't want to touch too much the code so leave it as before.
Agree that's a bit lazy but I only need a small feature and don't want to go in too much change.
And I don't see timeout for Splunk core sdk.