Completed syncTo and added integration tests