Created convenience function for appending sample output.