Adding a helper function to get parameters with a fallback default