Added sync in kernel