Use sync engine to avoid seg fault