Adding console and fixing some stuff