Added tempbuf