Changed OnlineStatus to enum.