Pass in type and name