Implemented buffer size option in example.