Setting buffer size