Rename the flag for returning the variable attributes.
Remove the redundant noisy flags.
Make the function quicker by eliminating the use of loops.