Slightly more defensive programming.