Add getNextBytes method