Added parameteric sync method