Ukraine encourages foreign trade and investment. The Parliament of Ukraine has approved a foreign investment law allowing foreigners to purchase businesses and property, to repatriate revenue and profits, and to receive compensation if the property is nationalized by a future government. However, complex laws and regulations, poor corporate governance, weak enforcement of contract law by courts, and corruption all continue to stymie direct large-scale foreign investment in Ukraine. While there is a functioning stock market, the lack of protection of shareholders' rights severely restricts portfolio investment activities.