Add barrier for correct timing