Integrated Console properly and fixed some bugs.