Used buffer_size variable instead of constant.