Cleaned up command, implemented online check.