Added clear buffer to processuid function