As far as I can tell, it seems to work as-is. However, you have a variable that isn't being used for anything at all -- %mood.