Added error checking for offline players