Adding behavior to scan fields feature