Move calculating the support outside setParams().