Added a function for actions, tested with a snuggles command.