Extract computing refill delay from refill function.
Parse GET before QUIT commands for efficiency
Cleanup in main algorithm
Enable optimizations