added delay temporarily to prevent data misalignment; still a bug that prevents data from be transmited past a certain point