added frequent_commands function