How to use data to change behaviors