@mod This is a great solution, thank you. Here is modified to what I needed it to do:
It would've been nice to have been able to change the expression by sending a message but as it turns out it's very complicated indeed for what it is, and this will do nicely.
Thanks everyone for your help.