Add BaseCommand class.