Changed sync to int