I've updated to use a constructor that is not deprecated.