Issue involving logging to console