Profiting from the patterns of your environment.