Changed the Logger abit and improved its handeling.