Added extended debug info. TODO: replace linebreaks