This getModes() method is now unused, so you can delete it.