Writing cout SAM correctly now.