Refactor getting callbacks from opts
Remove comment
Add stall timeout on responses, refactor a little
Add a test for stall