Some custom actions and conditions to support text behaviour