Fix port
Use sync instead of async
Buffer