Using buffer for synchronized write action