Added debug messages to syncTodos