Fix stuttering (buffer sizes should be configurable in runtime)