Updated addTask For Sync