Print statements behaving oddly.