Moved currentTime functions and broke up large fillBuffer function