Performing work by a foreigner - this means employment, performing other gainful work, performing functions in the management boards of legal persons that have been entered into the register of entrepreneurs under the provisions of the National Court Register or are capital companies in organization or running the affairs of a limited partnership or limited joint-stock partnership by general partner or acting as a proxy.