Changed to @ianb's suggestion.