Change type to auto