Add autofill functionality