Refactor online.[sync]