Removed hardcoded device buffer size