Function manages its own parameters