Sex is now taken as parameter.