Puppet function to simplify failure