Added check for args[] count