Move assignment of $thoughtwords into controller