Console logging and slightly fix error thingy