Added usage dialog and clamped preferred buffer size.