Added method to calculate percentage synced to the Task class.