Fixed Whitespace error and added a few debugs