Makes error handling for params more explicit