Set the initial capacity so the buffer doesn't need to grow.
Adding some constants, slight refactoring.