Added buffer size to be set at compile time