Buffer initialisation threadsave!