now working. Will add looping shortly.