The doctrine of ultra vires is invoked to punish corporate acts that exceed the powers or stated purposes of the corporation. Most states validate corporate acts if they are directed toward making a profit and are not in direct violation of civil or criminal statutes.