Working on frame sync