Improved console class.
Added console action.
Fix bug.