Adding method to automatically add commands.