Updated Example script
Added code to check buffer output