We should also check that buffer is null, so they can't queue both a buffer and a file