Further changes to debug commands and profiles
Changes to logging in