Added helper method to get parameters based on the type.