Added writing to console capability