Convert static usage to lambdas (for simplicity purposes).