Added more debug strings, fixed permissions