Are you sure? I tried max before but got this warning:

WARNING: max(x) is deprecated, use maximum(x) instead.