Added check_parameters variable for testing.