Improved console library