Don't use deprecated contents attribute